//
//  ShopCarSeverHeaderView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/6.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "ShopCarSeverHeaderView.h"

@implementation ShopCarSeverHeaderView{
    GLGWLabel * leftLabel;
    //
    GLGWLabel * namePhoneLabel;
    GLGWLabel * warehoseLabel;
    GLGWLabel * adressLabel;
}

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        GLGWView * garyView = [[GLGWView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, kHeightProportion_In_iPhoneTriploid(10)) inSuperView:self];
        garyView.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
        //
        GLGWImageView * rightPush = [[GLGWImageView alloc] initWithImageName:@"gg" inSuperView:self];
        rightPush.backgroundColor = kRandomColor;
        [rightPush mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.centerY.equalTo(self).offset(kHeightProportion_In_iPhoneTriploid(5));
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(10)));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(16)));
        }];
        //
        leftLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(15), kY_With_View(garyView, 12), kWidthProportion_In_iPhoneTriploid(150), kHeightProportion_In_iPhoneTriploid(20)) theFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self];
        leftLabel.text = @"选择服务企业";
        leftLabel.hidden = YES;
        //
        namePhoneLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(leftLabel.x, kY_With_View(garyView, 12), KScreenWidth - kWidthProportion_In_iPhoneTriploid(50), kHeightProportion_In_iPhoneTriploid(20)) theFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self];
        namePhoneLabel.text = @"高博涵  18614071701";
        //
        warehoseLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(namePhoneLabel.x, kY_With_View(namePhoneLabel, 5), namePhoneLabel.width, namePhoneLabel.height) theFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#666666"] inSuperView:self];
        warehoseLabel.text = @"北京1号仓库";
        //
        adressLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(warehoseLabel.x, kY_With_View(warehoseLabel, 5), warehoseLabel.width, warehoseLabel.height) theFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        adressLabel.text = @"北京市朝阳区左家庄中街23号";
        
    }
    return self;
}

@end
